<template>
  <view>
    <web-view :src="path"> </web-view>
  </view>
</template>

<script>
export default {
  data () {
    return {
      path: ''
    }
  },
  onLoad (val) {
    let option = decodeURIComponent(val.url)
    let url = option.split('?')[0]
    let a = option.split('?')[1]
    // let url = option.split('?')[0].replace('https://www.xdyy100.com', 'http://10.10.64.111:8080')
    // let url = option.split('?')[0].replace('https://120.48.78.56', 'http://10.10.64.111:8080')
    !a ? a = '' : a = '&' + a
    this.path = url + '?weixin=true&token=' + uni.getStorageSync('token') + a
  }
}
</script>
